/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 *
 * @author Mikkel
 */
public class Customer {

    private int ID;
    private int Phoneno;
    private String companyName;
    private String address;
    private String zipcode;
    private String city;
    private String district;
    private String country;

    public Customer(int ID, int Phoneno, String companyName, String address, String zipcode, String city, String district, String country) {
        this.ID = ID;
        this.Phoneno = Phoneno;
        this.companyName = companyName;
        this.address = address;
        this.zipcode = zipcode;
        this.city = city;
        this.district = district;
        this.country = country;
    }

    public Customer(int Phoneno, String companyName, String address, String zipcode, String city, String district, String country) {
        this.Phoneno = Phoneno;
        this.companyName = companyName;
        this.address = address;
        this.zipcode = zipcode;
        this.city = city;
        this.district = district;
        this.country = country;
    }

    public int getID() {
        return ID;
    }

    public int getPhoneNo() {
        return Phoneno;
    }

    public String getCompanyName() {
        return companyName;
    }

    public String getAddress() {
        return address;
    }

    public String getZipcode() {
        return zipcode;
    }

    public String getCity() {
        return city;
    }

    public String getDistrict() {
        return district;
    }

    public String getCountry() {
        return country;
    }

    public String toStringSQL() {
        return "(" + Phoneno + ", '" + companyName + "', '" + address + "', '" + zipcode + "', '" + city + "', '" + district + "', '" + country + "')";
    }

    public String toStringInfo() {
        String svar = Phoneno + "\n" + companyName + "\n" + address + "\n" + zipcode + "\n" + city + "\n" + district + "\n" + country;

        if (district==null) {
            System.out.println("OST");
            svar = Phoneno + "\n" + companyName + "\n" + address + "\n" + zipcode + "\n" + city + "\n" + country;
        }
        return svar;
    }

    @Override
    public String toString() {
        String svar = Phoneno + " - " + companyName;
        return svar;
    }
}